Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

@jelbourn
Copy link
Member

Fixes #4110

This change is missing a unit test. After spending quite a bit of time trying to write one, I've been unable to find a way to imitate this browser behavior manually.

Using label.click() will correctly make the associated input also fire a click event, but the coordinates for both events will be (0, 0), which $mdGesture interprets as a keyboard-triggered click.

Manually creating an event and using label.dispatchEvent lets you set the coordinates, but dispatching it in this way does not also automatically trigger a click on the input.

@robertmesserle @ThomasBurleson

@jelbourn jelbourn added this to the 0.11.0 milestone Aug 19, 2015
@ThomasBurleson
Copy link
Contributor

@jelbourn - I have encountered similar situations where a custom event was needed, but it would not trigger the handler. While a test would be ideal, I will merge for now...

@jelbourn jelbourn closed this in 912bcef Aug 19, 2015
@jelbourn jelbourn deleted the gesture-bug branch September 11, 2015 16:24
kennethcachia pushed a commit to kennethcachia/material that referenced this pull request Sep 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants